public class Main {



    public static void main(String[] args) {
        String greething = "Hello",a,c,d;
        int length_num;
//        String a=greething.substring(0,3)+"p!";
        a=greething;
        length_num=a.length();
        if (length_num == 5){
            a+=" World";
        }
//
        c=a.substring(0,1);
        char b=a.charAt(6);
        d=String.valueOf(b);
        System.out.println(b);
        System.out.println(c);
        System.out.println("d:"+d);

    }
}
